package io.doge.cc.admin.web.servlet;

import io.doge.cc.admin.holder.DogeCcHolder;
import io.doge.cc.core.DogeCc;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * Created by number.liu on 2015/10/29
 */
public class LoginServlet extends HttpServlet {



    @Override
    protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        DogeCc dogeCc = DogeCcHolder.getDogeCc();
        dogeCc.getProperties();
        resp.sendRedirect("/home.jsp");

    }

    @Override
    protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        this.doPost(req,resp);
    }
}
